Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cygwin: revert use of CancelSyncronousIo on wait_thread. #77

Conversation

dscho
Copy link
Member

@dscho dscho commented Nov 25, 2024

It appears this is causing hangs on native x86_64 in similar scenarios as the hangs on ARM64, because CancelSynchronousIo is returning TRUE but not canceling the ReadFile call as expected.

Cherry-picked from msys2/msys2-runtime's 2eb6be14ee (Cygwin: revert use of CancelSyncronousIo on wait_thread., 2024-11-21).

This needs to be fast-tracked because Git v2.47.1 was released (surprisingly).

It appears this is causing hangs on native x86_64 in similar scenarios
as the hangs on ARM64, because `CancelSynchronousIo` is returning `TRUE`
but not canceling the `ReadFile` call as expected.

Cherry-picked from msys2/msys2-runtime's 2eb6be14ee (Cygwin: revert use
of CancelSyncronousIo on wait_thread., 2024-11-21).

Addresses: msys2/MSYS2-packages#4340 (comment)
Fixes: b091b47b9e56 ("cygthread: suspend thread before terminating.")
Signed-off-by: Jeremy Drake <cygwin@jdrake.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho requested a review from mjcheetham November 25, 2024 09:24
@dscho dscho self-assigned this Nov 25, 2024
Copy link
Member

@mjcheetham mjcheetham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dscho
Copy link
Member Author

dscho commented Nov 25, 2024

/open pr

The workflow run was started

@dscho dscho merged commit 7fdbd22 into git-for-windows:main Nov 25, 2024
2 checks passed
@dscho dscho deleted the backport-revert-CancelSyncronousIo-on-wait_thread branch November 25, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants